#include"CRectangle.h"
#include"CTriangle.h"
#include"Polygon.h"
void CPolygon::setValues(int a, int b){
	width = a;
	height = b;
}
int CRectangle::area(){
	return(width*height);
}
int CTriangle::area(){
	return (width*height / 2);
}